﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <title>网站留言</title>
    <link href="static/css/message.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="static/js/m.js"></script>
</head>

<body style="background:none;padding:0px;overflow:hidden">
    <div id="clewDiv">
        正在提交
    </div>
    <form method="post" action="#" id="myform" style="margin:0px">
        <table cellspacing="0" width="100%">
            <tr>
                <td colspan="2">
                    <div>
                        <label>我想要：</label><span>*</span>
                        <select id="columnList" name="columnID">
                            <option value="1" selected="selected">LOGO设计</option>
                            <option value="2">商标注册</option>
                            <option value="3">商标交易</option>
                            <option value="4">专利申请</option>
                            <option value="5">代理记账</option>
                        </select>
                    </div>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <div>
                        <label>手机号：</label><span>*</span>
                        <input name="phone" id="phone" maxlength="25" class="fill_text">
                    </div>
                </td>
            </tr>
            <tr>
                <td colspan="2" height="30" style="padding-top:10px;text-align:center">
                    <button id="submitBtn" name="submit" type="submit" class="green_btn1" onclick="return addMessage()">提交获取报价</button>
                    <input id="Reset3" name="reset" type="reset" value="清 除" class="gray_btn" />
                </td>
            </tr>
        </table>

    </form>
    <script>
        let arr = [
            '提交获取报价',
            '免费查询商标/获取报价',
            '免费查询商标/获取报价',
            '提交获取报价'
        ]
        let num = location.search.substr(-1, 1) - 1
        let columnList = document.getElementById('columnList');
        let submitBtn = document.getElementById('submitBtn');
        let option = columnList.getElementsByTagName('option');
        option[num].setAttribute('selected', 'selected');
        submitBtn.innerHTML = arr[num]
        submitBtn.setAttribute('class', 'green_btn' + (num + 1))
    </script>
</body>

</html>